<%@ page language="java" pageEncoding="utf-8"%>
<%@ taglib prefix="sx" uri="/struts-dojo-tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
	<head>
		<link href="style/style1.css" rel="stylesheet" type="text/css">
		<link href="style/global.css" rel="stylesheet" type="text/css">
		<script type="text/javascript" src="javascript/table.js"></script>
		<link rel="stylesheet" type="text/css" href="../css/commons.css">
		<script type="text/javascript" src="javascript/confirm.js"></script>
		<sx:head />
	</head>
	<body>
		<div id="addrecord">

			<center>
			<br>
				<h3>
					用户信息列表
				</h3>

				<div class="managerTable">

					<table>
						<tr>
							<th width="300">
								<div align="center">
									用户博客名
								</div>
							</th>

							<th width="100">
								<div align="center">
									用户类型
								</div>
							</th>

							<th width="100">
								<div align="center">
									详细信息
								</div>
							</th>
							<th width="100">
								<div align="center">
									设为管理员
								</div>
							</th>


						</tr>
						<s:iterator value="pageUserList.pageList" id="user" status="st">
							<tr
								<s:if test="#st.odd==false">style="background-color: #fff"</s:if>
								onmouseover="onDivOver(this)" onmouseout="onDivOut(this)">
								<td align="left">
									${user.blogName }
								</td>
								<c:if test="${user.userType==0}">
									<td align="center">
										管理员
									</td>
								</c:if>
								<c:if test="${user.userType==1}">
									<td align="center">
										普通用户
									</td>
								</c:if>

								<td align="center">
									查看
								</td>
								<c:if test="${user.userType==1}">
									<td align="center">
										<a href="addManager.action?account=${user.account}">设为管理员</a>
									</td>
								</c:if>
							</tr>
						</s:iterator>
						<td colspan="4">
							<span class="pagerFont"> <s:if
									test="!pageUserList.isFirstPage()">
									<a id="link1" href="authorityManager.action?page=first">首页
									</a>

									<a id="link3" href="authorityManager.action?page=previous">上一页
									</a>
								</s:if> 共 <s:property value="pageUserList.getPageCount()" /> 页
								&nbsp;&nbsp; 当前第 <s:property value="pageUserList.getPage()+1" />
								<s:if test="!pageUserList.isLastPage()">
									<a id="link4" href="authorityManager.action?page=next">下一页
									</a>
									<a id="link2" href="authorityManager.action?page=last">末页 </a>
								</s:if> </span>

						</td>
					</table>
				</div>
			</center>
		</div>
	</body>
</html>
